import java.util.Arrays;

public class t1 {
    public static void main(String[] args) {
        //oT eb ro ton ot eb
        //To be or not to be
        System.out.println(start("oT eb ro ton ot eb"));

    }
    public static StringBuffer start(String data) {
        StringBuffer ans = new StringBuffer();
        String arr[] = data.split(" ");
        System.out.println(Arrays.toString(arr));
        for(int i =0;i<arr.length;i++){
            char brr[] = arr[i].toCharArray();
            for(int j = 0;j<arr[i].length()/2;j++){
                char a = brr[j];
                brr[j] = brr[arr[i].length()-1-j];
                brr[arr[i].length()-1-j] = a;
            }

            arr[i] = new String(brr);

            ans.append(arr[i] +" ");
        }

        return ans;
    }


}

